//
//  Jinzhu.h
//  Jinzhu
//
//  Created by Jinzhu on 2018/6/4.
//  Copyright © 2018年 Jinzhu. All rights reserved.
//

#ifndef Jinzhu_h
#define Jinzhu_h

//固定参数
#define PRODUCT_ID @"94"
#define VERSION @"100"



#define RGBA(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]

#define WEAKSELF typeof(self) __weak weakSelf = self;

// 版本
#define kSystemVersion [[UIDevice currentDevice].systemVersion floatValue]

#define FONTSIZE(size) [UIFont systemFontOfSize:size]


// 高度
#define kTabBarViewHeight 49
#define kStatusNavigationHeight (kSystemVersion >= 7.0 ? 64 : 0)
#define kScreenHeight [[UIScreen mainScreen] bounds].size.height
#define kScreenWidth  [[UIScreen mainScreen] bounds].size.width
#define kScreenSize  [[UIScreen mainScreen] bounds].size
#define kBannerHeight 120
#define KISIPhoneX ([[UIApplication sharedApplication] statusBarFrame].size.height == 44)
#define KSafeAreaTopHeight (KISIPhoneX ? 88 : 64)
#define KSafeStateHeight (KISIPhoneX ? 44 : 20)
#define KSafeAreaBottonHeight (KISIPhoneX ? 34 : 0)

#define NSbunleloadNibName(nibName) [[[NSBundle mainBundle]loadNibNamed:nibName owner:nil options:nil] lastObject]



#define NULL_IMAGE [UIImage imageNamed:@""]












#endif /* Jinzhu_h */
